From: Lars Ingebrigtsen Date: Thu, 13 Jun 2019 00:03:55 +0000 (+0200) Subject: Add comment to clarify the use of `str' X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~2972 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=db2bd19c45d0b0eae439cec9c5d2009412490510;p=emacs.git Add comment to clarify the use of `str' --- diff --git a/lisp/erc/erc.el b/lisp/erc/erc.el index d1fa5c7f120..ddfa7a3e15c 100644 --- a/lisp/erc/erc.el +++ b/lisp/erc/erc.el @@ -5443,6 +5443,8 @@ This returns non-nil only if we actually send anything." (let ((str input) (erc-insert-this t)) (setq erc-send-this t) + ;; The calling convention of `erc-send-pre-hook' is that it + ;; should change the dynamic variable `str'. (run-hook-with-args 'erc-send-pre-hook input) (when erc-send-this (if (or (string-match "\n" str)